home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gNumVideoSprite, gNumTexteSprite
- if the movieRate of sprite gNumVideoSprite then
- put the movieTime of sprite gNumVideoSprite into field "Tempo"
- end if
- go(the frame)
- end
-
- on idle
- global gNumVideoSprite, gNumTexteSprite, gListeTimer, gPhraseCourante, gLocCourant, gIndex, gTailleListe
- if the movieTime of sprite gNumVideoSprite = gIndex then
- set nomMembre to "Ang" & gPhraseCourante
- set the castNum of sprite gNumTexteSprite to the number of member nomMembre
- set Largeur to the width of member nomMembre
- set the locH of sprite gNumTexteSprite to (640 - Largeur) / 2
- updateStage()
- if (gPhraseCourante + 1) <= gTailleListe then
- set gPhraseCourante to gPhraseCourante + 1
- set gIndex to getAt(gListeTimer, gPhraseCourante)
- end if
- end if
- end
-
- on mouseUp
- global gNumVideoSprite, gNumTexteSprite
- if inside(point(the mouseH, the mouseV), the rect of sprite gNumVideoSprite) then
- put the movieTime of sprite gNumVideoSprite into field "Tempo"
- end if
- end
-
- on keyDown
- global gNumVideoSprite, gNumTexteSprite
- case the keyCode of
- 126:
- if value(field "Tempo") < the duration of sprite(gNumVideoSprite) then
- put value(field "Tempo") + 10 into field "Tempo"
- end if
- 125:
- if value(field "Tempo") > 0 then
- put value(field "Tempo") - 10 into field "Tempo"
- end if
- 124:
- if value(field "Tempo") < the duration of sprite(gNumVideoSprite) then
- put value(field "Tempo") + 1 into field "Tempo"
- end if
- 123:
- if value(field "Tempo") > 0 then
- put value(field "Tempo") - 1 into field "Tempo"
- end if
- end case
- set the movieTime of sprite gNumVideoSprite to value(field "Tempo")
- end
-